<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body> 
    <p>i love you</p>
    
    <script>
        //右键菜单事件
        window.oncontextmenu = function(e){
            e.preventDefault();
        }

        window.onkeydown = function(e){
            //如果按下 c 的同时也按下了 ctrl 则你正在复制, 阻止
            if(e.keyCode == 67 && e.ctrlKey === true){
                e.preventDefault();
            }
        }
    </script>
</body>
</html>